package com.example.design_pattern.visitor;

public class IntegratedBoard  extends Composite{

    public IntegratedBoard(){
        add(new Cpu());
        add(new MainBoard());
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitIntegratedBoard(this);
    }
}
